﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using ZHDJ.Core.Caching;
using ZHDJ.Data.Models.Center;
using ZHDJ.WebPage;

namespace ZHDJ.Web.Portal.PartyRepresentative
{
    public partial class Default : PortalPage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        public void LoadData()
        {
    
            var dt= PartyRepresentativeStudio.GetGridData(0, int.MaxValue, "", "4").Tables[0];
            dt.Columns.Add("ImgUrl", typeof(string));
            foreach (DataRow dr in dt.Rows)
            {
                dr["ImgUrl"] = UpFileBusiness.GetFileUrl(Convert.ToString(dr["ImageID"]));
            }
            rptStudio.DataSource = dt;
            rptStudio.DataBind();
        }
    }
}